<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:include page="/admin/view/main/header.jsp" />

<!-- business code start -->

<form id="frm_merchanttype"
	action="/merchantTypeManager/updateMerchantTypeFile.action" method="post" 
	enctype="multipart/form-data" class="definewidth m20" >
	<table class="table table-bordered table-hover definewidth m10">
		
		<tr>
			<td class="tableleft">类型名称</td>
			<td>
				<input type="hidden" name="uuid" id="uu_id"/>
				<input type="text" name="typeName" id="type_name"/>
			</td>
		</tr>
		<tr id="merchant_img">
			<td class="tableleft">类型图片</td>
			<td>
				<input type="file" name="myfiles" />
				<input type="hidden" name="bindToId" id="bindTo_id">
				<input type="hidden" name="typeStrategy" id="type_strategy">
			</td>
		</tr>
		<tr>
			<td class="tableleft">已绑定广告</td>
			<td id="ad_info">
				
			</td>
		</tr>
		<tr>
			<td class="tableleft">未绑定广告</td>
			<td id="un_ad_info">
				
			</td>
		</tr>
		<tr>
			<td class="tableleft"></td>
			<td>
				<button id="tbn_update" type="button" class="btn btn-primary" >修改</button> &nbsp;&nbsp;
				<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
			</td>
		</tr>
	</table>
</form>
<!-- business code end -->

<jsp:include page="/admin/view/main/footer.jsp" />
<script
	src="<%=request.getContextPath()%>/admin/js/business/technology/merchanttype/merchanttype.js"></script>

<script>
    $(function () {       
		$('#backid').click(function(){
				window.location.href="<%=request.getContextPath()%>/admin/view/technology/merchanttype/merchanttypelist.jsp";
						});

	});
</script>
